package com.doit.day01;

import org.apache.zookeeper.ZooKeeper;

import java.io.IOException;

public class ZkCliDemo {
    public static ZooKeeper getCli(){
        ZooKeeper zooKeeper = null;
        try {
            zooKeeper = new ZooKeeper("linux01:2181", 2000, null);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return zooKeeper;
    };
}
